package sk.tuke.constraintbuilder.builder.resourcemodel;

/**
 * Created by IntelliJ IDEA.
 * User: Brano
 * Date: 17.4.2011
 * Time: 18:01
 */
public class AnnotationMemberElement extends ContainerElement{
    private String name;
    private String type;

    public AnnotationMemberElement(String name, String type) {
        this.name = name;
        this.type = type;
    }

    @Override
    public String generateXML() {
        return
        "<annotation_member" + addXMLAttr("name", name) + addXMLAttr("type", type) + ">"
                + generateXMLSubElements() +
        "</annotation_member>";
    }
}
